
declare module Microsoft.Office.WebExtension {

    /** Represents a collection of CustomXMLPart objects. */
    export class CustomXmlParts {

        /** Asynchronously adds a new custom XML part to a file. */
        addAsync(xml: string, options?: { asyncContext?: any; }, callback?: (result: AsyncResult) => void);

        /** Asynchronously gets a custom XML part by its ID. */
        getByIdAsync(id: string, options?: { asyncContext?: any; }, callback?: (result: AsyncResult) => void);

        /** Asynchronously gets an array of custom XML parts that match the specified namespace. */
        getByNamespaceAsync(ns: string, options?: { asyncContext?: any; }, callback?: (result: AsyncResult) => void);
    }
}